@import '~iview/src/styles/index.less';
@import '~@/assets/style/theme/index.less';
html {
    font-size: 10px;
    height: 100%;
}
@media only screen and (max-width: 310px) and (min-width: 300px) {
    html {
        font-size: 9px;
    }
}
@media only screen and (max-width: 320px) and (min-width: 310px) {
    html {
        font-size: 9px;
    }
}
@media only screen and (max-width: 360px) and (min-width: 320px) {
    html {
        font-size: 9px;
    }
}
@media only screen and (max-width: 360px) and (min-width: 350px) {
    html {
        font-size: 10px;
    }
}
@media only screen and (max-width: 480px) and (min-width: 360px) {
    html {
        font-size: 10px;
    }
}
@media only screen and (max-width: 480px) and (min-width: 470px) {
    html {
        font-size: 13.33333px;
    }
}
@media only screen and (max-width: 560px) and (min-width: 480px) {
    html {
        font-size: 13.33333px;
    }
}
@media only screen and (max-width: 570px) and (min-width: 560px) {
    html {
        font-size: 15.83333px;
    }
}
@media only screen and (max-width: 640px) and (min-width: 570px) {
    html {
        font-size: 15.83333px;
    }
}
@media only screen and (max-width: 640px) and (min-width: 630px) {
    html {
        font-size: 17.77778px;
    }
}
@media only screen and (max-width: 710px) and (min-width: 640px) {
    html {
        font-size: 17.77778px;
    }
}
body {
    background: @table-thead-bg !important;
}

.margin-top {
    margin-top: @gap;
}

.margin-left {
    margin-left: @gap;
}

.ml6 {
    margin-left: 6px;
}

.text-right {
    text-align: right;
}

.remark {
    color: @subsidiary-color;
    line-height: 1;
    margin-top: 8px;
}

.ivu-card-head {
    padding: 12px 14px !important;
}

.ivu-card-body {
    font-size: 12px !important;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu),
.ivu-menu-dark.ivu-menu-vertical
    .ivu-menu-submenu-title-active:not(.ivu-menu-submenu) {
    border-right: none !important;
}
.aside-menu .ivu-menu-vertical .ivu-menu-item,
.aside-menu .ivu-menu-vertical .ivu-menu-submenu-title {
    padding: 12px 22px !important;
}
.aside-menu .ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item {
    padding-left: 46px !important;
}

.ivu-table-cell {
    padding: 8px 12px !important;
    .ivu-checkbox-wrapper {
        margin-right: 0 !important;
    }
}

.padding-all {
    padding: @gap !important;
}

// custom ivu from
.custom-ivu-form-item .ivu-form-item {
    display: flex;
    align-items: center;
    margin-bottom: @gap;
    .ivu-form-item-label {
        padding: 0;
        padding-right: 6px;
        width: 120px;
        display: flex;
        justify-content: flex-end;
    }
    .ivu-form-item-content {
        position: inherit;
        flex: 1;
    }
}

.ivu-form-label-right,
.ivu-form-label-left {
    .ivu-form-item {
        display: flex;
    }
    .ivu-form-item-label {
        width: 110px;
        .ivu-select {
            text-align: left;
        }
    }
    .ivu-form-item-content {
        flex: 1;
    }
}

// rewrite tab style
.rewrite-tabs-style {
    overflow: initial;
    .ivu-tabs-bar {
        background: @table-thead-bg;
        margin-bottom: 0;
    }
    .ivu-tabs-nav-container {
        font-size: 13px;
    }
    .ivu-tabs-tab {
        margin-right: 6px !important;
    }
    .ivu-tabs-content {
        border-radius: 0 0 4px 4px;
        background: #fff;
        border: 1px solid @border-color-base;
        border-top: 0;
        padding: @gap;
    }
}

// custom button group

// custom-collapse

.custom-collapse.ivu-collapse {
    background: #fff;
    > .ivu-collapse-item > .ivu-collapse-header {
        font-size: 13px;
        padding: 12px 0;
        padding-left: 16px;
        height: inherit;
        line-height: inherit;
        position: relative;
        color: #848c98;
        font-weight: bold;
        .ivu-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            margin-top: -7px;
            color: #c2c7cc;
        }
    }
}

.demo-upload-list {
    display: inline-flex;
    float: left;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    border: 1px solid @border-color-base;
    border-radius: 4px;
    background: #fff;
    position: relative;
    margin-right: 4px;
    margin-bottom: 4px;
    align-items: center;
    justify-content: center;
    position: relative;
    i {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        right: -6px;
        top: -6px;
        width: 14px;
        height: 14px;
        border-radius: 100%;
        color: #fff;
        background: @error-color;
        cursor: pointer;
        z-index: 2;
        display: none;
    }
    &:hover i {
        display: flex;
    }
}

.demo-upload-list img {
    max-width: 100%;
    max-height: 100%;
}

// specifition-card
.specifition-card {
    .tag-con {
        display: inline-block;
        width: 110px;
        margin-right: 8px;
        position: relative;
        vertical-align: top;
        .tag__image {
            width: 110px;
            height: 110px;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border: 1px solid @border-color-base;
            border-radius: 4px;
            margin-top: 6px;
            position: relative;
            .arrow {
                position: absolute;
                width: 0;
                height: 0;
                top: -10px;
                left: 44%;
                border-style: solid;
                border-color: transparent;
                border-left: 6px solid transparent;
                border-right: 6px solid transparent;
                border-bottom: 6px solid @border-color-base;
                &:after {
                    position: absolute;
                    display: block;
                    width: 0;
                    height: 0;
                    border-color: transparent;
                    border-style: solid;
                    top: -9px;
                    margin-left: -10px;
                    border-bottom-color: #fff;
                    border-top-width: 0;
                    border-width: 10px;
                    content: '';
                }
            }
            .ivu-icon-ios-plus-empty {
                color: #ddd;
            }
            img {
                max-width: 100%;
                max-height: 100%;
            }
            &:hover {
                .ivu-icon-ios-plus-empty {
                    color: @link-color;
                }
                .arrow {
                    border-bottom-color: @link-color;
                }
                border-color: @link-color;
                cursor: pointer;
            }
        }
    }
    .custom-tag {
        width: 100%;
        position: relative;
        .ivu-tag-text {
            text-align: center;
            display: block;
            width: 92%;
            overflow: hidden; /*超出部分隐藏*/
            white-space: nowrap; /*不换行*/
            text-overflow: ellipsis; /*超出部分文字以...显示*/
        }
        .ivu-icon-ios-close-empty {
            font-size: 18px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 8px;
        }
    }
    .ivu-poptip {
        // display: table;
        vertical-align: top;
    }
    .ivu-poptip-body {
        padding: 8px 8px;
    }
    .ivu-poptip-body-content {
        line-height: 33px;
        & > div {
            display: flex;
            align-items: flex-end;
        }
        .ivu-select,
        .ivu-input-wrapper {
            margin-right: 8px;
        }
    }
    .ivu-poptip-inner {
        white-space: normal;
    }
}

// sku-table
.sku-table {
    .ivu-form-item-error-tip {
        position: relative;
        margin-top: 0;
        padding: 0 14px;
        top: -6px;
    }
}

// tag-con poptip
.tag-con .ivu-poptip {
    width: 100%;
    .ivu-poptip-rel {
        width: 100%;
    }
}

// custom-modal
.custom-modal {
    .ivu-modal-header {
        padding: 12px 18px;
    }
}

// picture-modal
.picture-modal {
    .ivu-modal-body {
        padding: 0;
    }
    .ivu-menu-vertical {
        padding-top: 10px;
        height: 100%;
    }
    .ivu-menu-vertical .ivu-menu-item,
    .ivu-menu-vertical .ivu-menu-submenu-title {
        padding: 6px 14px !important;
    }
    .ivu-menu-vertical .ivu-menu-submenu-title {
        font-size: 13px;
        font-weight: bold;
    }
    .ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item {
        font-size: 13px;
        padding: 8px 16px !important;
        padding-left: 26px !important;
    }
    .ivu-menu-submenu-title > i,
    .ivu-menu-submenu-title span > i {
        margin-right: 0;
    }
}

// page
.ivu-page-prev {
    margin-right: 6px;
}
.ivu-page-next {
    margin-left: 0;
}
.ivu-page-options {
    margin-left: 6px;
}

// plus-button

.plus-button {
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 20px;
    &:hover {
        background: #fff;
        color: @link-color;
    }
}

// goods-create__steps
.goods-create__steps {
    .ivu-steps-head,
    .ivu-steps-title {
        background: @table-thead-bg;
    }
    .ivu-steps-title {
        margin-top: 2px;
    }
}

// color input
.color-input {
    .input {
        margin-right: 4px;
    }
    .ivu-color-picker .ivu-input {
        padding-right: 7px;
        cursor: pointer;
    }
    .ivu-icon {
        display: none;
    }
}

// b-form

.b-form {
    .ivu-form {
        .ivu-form-item {
            margin-bottom: 14px;
            display: flex;
            align-items: center;
        }
        .ivu-form-item-label {
            font-size: 14px;
            color: #777;
        }
    }
}

// img-ipt-url ivu-form-item-label
.img-ipt-url {
    .ivu-form .ivu-form-item {
        margin-bottom: 10px;
    }
    .ivu-form-item-label {
        width: 80px;
    }
}

.prompt {
    line-height: 1.5;
    color: @error-color;
}

.no-info{
    padding: .8rem;
    font-size:1.3rem;
    color: @error-color;
}
